package com.ysw.domian;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

/**
 * @ClassName PushTaskLog
 * @Description TODO
 * @Author ysw
 * @Date 2021/11/4 0:55
 */
@Document("push_log")
@Data
public class PushTaskLog {
    @Field("_id")
    private String id;
    @Field("task_id")
    private Long taskId;
    @Field("task_name")
    private String taskName;
    @Field("from")
    private String form;
    @Field("details")
    private List<Details> details;

    public PushTaskLog(String id, Long taskId, String taskName, String form, List<Details> details) {
        this.id = id;
        this.taskId = taskId;
        this.taskName = taskName;
        this.form = form;
        this.details = details;
    }
}